package behavior.stratege;

/**
 * 角色
 *
 * @author ykr
 * @date 2022/4/7
 */
public class Role {

	/**
	 * 名字
	 */
	private String name;

	/**
	 * 技能
	 */
	private Skill skill;

	public void skill() {
		System.out.println(name + "释放技能");
		skill.skill();
	}

	public Role(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Skill getSkill() {
		return skill;
	}

	public void setSkill(Skill skill) {
		this.skill = skill;
	}
}
